package com.cqq.auth.dao.impl;

import java.io.Serializable;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.cqq.auth.dao.ResourceMenuDao;
import com.cqq.auth.dao.domain.ResourceMenu;
import com.cqq.auth.dao.mapper.ResourceMenuMapper;
import com.cqq.common.core.base.BaseDao;
import com.cqq.common.core.base.BaseQuery;

/**
 * <h3>菜单资源Dao接口实现类</h3>
 * 
 * @author xijq
 * @version 1.0.0
 * 
 */
@Repository("resourceMenuDao")
public class ResourceMenuDaoImpl extends BaseDao implements ResourceMenuDao {
	
	@Autowired
	private ResourceMenuMapper resourceMenuMapper;

	
	public void add(ResourceMenu obj) {
		resourceMenuMapper.add(obj);
	}

	
	public Integer delete(Serializable id) {
		return resourceMenuMapper.delete(id);
	}

	
	public Integer update(ResourceMenu obj) {
		return resourceMenuMapper.update(obj);
	}

	
	public ResourceMenu queryById(Serializable id) {
		return resourceMenuMapper.queryById(id);
	}

	
	public List<ResourceMenu> queryAll() {
		return null;
	}

	
	public List<ResourceMenu> queryPage(BaseQuery query) {
		return resourceMenuMapper.queryPage(query);
	}

	
	public Integer queryCount(BaseQuery query) {
		return resourceMenuMapper.queryCount(query);
	}

	
	public List<ResourceMenu> queryByUserId(Integer id, String systemCode) {
		return resourceMenuMapper.queryByUserId(id, systemCode);
	}

	
	public ResourceMenu queryByUrl(String url, String systemCode) {
		return resourceMenuMapper.queryByUrl(url, systemCode);
	}

}
